/**
 * Created by Bird on 2016/11/19.
 */
var https = require('https');
var fs = require('fs');

var options = {
    key: fs.readFileSync('./key.pem'),
    cert: fs.readFileSync('./key-cert.pem')
};

https.createServer(options, function(req, res){
    res.writeHead(200);
    res.end('hello world\n')
}).listen(3000);